<!--
	此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQCGAHhAM73EC-ANMdtRrQAJoVQlYwxmEaEA2vUCw5oEKlQEXRgUDT6PWEuWB_eUAUrlp0HA7Eb0Autz7oK5UUQkCAZmAYBmAKRbi6chQALNx0AFm8bEgAjYDBMAFsPcN9YAGMYGQhoABlGSOpsQjBSAFdqa2JMHGjmMWTnamli0mpaiXQ2RgA3agBBNgBJOMYaMS5ksfReYmYe1jZWkjAATxAWnRTpQWBSJZ8JaOKRRh2AcUYCWGdGbDZqCPQpGXl6ACYABhf3AFoARh_fgAcxleH2-f1-AE5ge9Pr9_u9oaC4V8Xj9EbDwS8XuiwfD3DjkS8QpZyuglrN2At0MtVgxOtdSpxJhFbuRqPNYHJkuI2tBGHE1roNHs2jTBdhMtQRRI2DIUgBrBgAFRi12lJEesk5P3e2h-7heerePz17hC2ghb20nytsFRbysEimEh5Ej5AoYKkM6upK3Fkp9sFljAVytV2EDmvkWNtPwBhtgPwhJrtZutlu07nctvcPwd43ujl5_MFZkDYoYEugUsL7Tlip0KpkEdrkmkWrkBpzBszxszadg7gzg-zmfejpIztgVi4AG4gA
	⚠ 请注意，该图表不是 Apache ECharts 官方示例，而是由用户代码生成的。请注意鉴别其内容。
-->
<!DOCTYPE html>
<html lang="zh-CN" style="height: 100%">
<head>
  <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
  <div id="container" style="height: 100%"></div>

  
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
  <!-- Uncomment this line if you want to dataTool extension
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.3/dist/extension/dataTool.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use gl extension
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js"></script>
  -->
  <!-- Uncomment this line if you want to echarts-stat extension
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts-stat@latest/dist/ecStat.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use map
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@4.9.0/map/js/china.js"></script>
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@4.9.0/map/js/world.js"></script>
  -->
  <!-- Uncomment these two lines if you want to use bmap extension
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=YOUR_API_KEY"></script>
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.3/dist/extension/bmap.min.js"></script>
  -->

  <script type="text/javascript">
    var dom = document.getElementById('container');
    var myChart = echarts.init(dom, null, {
      renderer: 'canvas',
      useDirtyRect: false
    });
    var app = {};
    
    var option;

    option = {
  tooltip: {
    trigger: 'axis'
  },
  legend: {
    data: ['服务订阅', '服务使用', '用户']
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    data: ['2023-11-18', '2023-11-19', '2023-11-20', '2023-11-21', '2023-11-22', '2023-11-23', '2023-11-24']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      name: '服务订阅',
      type: 'line',
      stack: 'Total',
      data: [120, 132, 101, 134, 90, 230, 210]
    },
    {
      name: '服务使用',
      type: 'line',
      stack: 'Total',
      data: [220, 182, 191, 234, 290, 330, 310]
    },
    {
      name: '用户',
      type: 'line',
      stack: 'Total',
      data: [320, 332, 301, 334, 390, 330, 320]
    },
  ]
};

    if (option && typeof option === 'object') {
      myChart.setOption(option);
    }

    window.addEventListener('resize', myChart.resize);
  </script>
</body>
</html>